package com.rfouchet.movie.allocineapi;

public enum TypeProfile {

	SMALL("small"), MEDIUM("medium"), LARGE("large");

	private String profile;

	private TypeProfile(String profile) {
		this.profile = profile;
	}
	
	public String getProfile() {
		return profile;
	}
	
	public TypeProfile fromProfile(String p)
	{
		for (TypeProfile v : TypeProfile.values())
		{
			if (v.getProfile().equals(p))
			{
				return v;
			}
		}
		return null;
	}

}
